﻿using System;
using System.Configuration;
using System.Collections.Generic;

using SBPweb.Communication.Shared.Library.Conversations;

using SBPweb.Communication.Client.Library.Xmpp.Configuration;

namespace SBPweb.Communication.Client.Library.Xmpp.Conversations
{

    public partial class ConversationManagerConfigurationParser : ConfigurationParserBase, IConversationManagerConfiguration
    {

        #region Constructor logic

        public ConversationManagerConfigurationParser(IDictionary<string, string> parameters)
            : base(parameters)
        {
        }

        #endregion

        #region Property accessors

        protected override string Prefix
        {
            get
            {
                return "ConversationManager";
            }
        }

        public bool GetPublicConferencesWhenConnected
        {
            get
            {
                return GetValue<bool>("getPublicConferencesWhenConnected", true);
            }
        }

        #endregion

    }

}